#!bin/bash

if [ "$1" = "" -o "$1" = "all" ]; then
    cd BenchMarkDisk/
    make
    cd ../BenchMarkMemory/
    make
    cd ../BenchMarkCPU/
    make
    cd ../BenchMarkNetwork/
    sh make.sh
    cd ..
fi

if [ "$1" = "clean" ]; then
    cd BenchMarkDisk/
    make clean
    cd ../BenchMarkMemory/
    make clean
    cd ../BenchMarkCPU/
    make clean
    cd ../BenchMarkNetwork/
    sh make.sh clean
    cd ..
fi